export function copy(str) {
  let input = document.createElement('input')
  input.value = str
  setTimeout(() => {
    input.select()
    document.execCommand('copy')
    input.remove()
  })
  document.body.appendChild(input)
}